package com.nbot.server.mapper.master;

import com.nbot.server.domain.MenuDO;

import java.util.List;
import java.util.Map;

/**
 * Created by lovewinner on 2018/6/6.
 */
public interface MenuMapper {
    MenuDO get(Long menuId);

    List<MenuDO> list(Map<String, Object> map);

    int count(Map<String, Object> map);

    int save(MenuDO menu);

    int update(MenuDO menu);

    int remove(Long menuId);

    int batchRemove(Long[] menuIds);

    List<MenuDO> listMenuByUserId(Long id);

    List<String> listUserPerms(Long id);
}
